package cn.com.dashihui.api.Queue;

import java.util.LinkedList;

import cn.com.dashihui.api.dao.OrderG;

/**
 * 订单队列
 * @author Administrator
 *
 */
public class OrderQueue extends LinkedList<OrderG>{
	
	private volatile int teamNum = 0;
	
	@Override
	public OrderG poll() {
		return super.poll();
	}
	
	@Override
	public boolean offer(OrderG e) {
		e.set("buyNum", teamNum++);
		return super.offer(e);
	}
	
	
}
